<?php

namespace App\Observers;

use App\Jobs\ClueCreatedJob;
use App\Models\Clue;
use App\Models\ClueCrmInfo;

class ClueObserver
{

    public function created(Clue $clue)
    {
//        $clue->mapToProjectOfCheck();

        ClueCreatedJob::dispatch($clue)->onQueue('clue_created');
    }

    public function deleted(Clue $clue)
    {
//        ClueCrmInfo::query()
//            ->where('clue_id', $clue->id)
//            ->delete();
    }

}
